/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package datasource.pixel;

/**
 *
 * @author Fabian
 */
public class MonoPixel extends Pixel{
    //dado que solo tiene dos colores, se almacenan en un byte (por defecto negro)
    private byte color=(byte) 255;

    public MonoPixel() {
    }

    public MonoPixel(byte color) {
        this.color = color;
    }
    public byte getColor() {
        return color;
    }
    public void setColor(byte color) {
        this.color = color;
    }
    @Override
    public int getRed() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public int getGreen() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public int getBlue() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public int getRGB() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
